tcs nqt programming logic questions